package com.ooqiu.gaming.ui.search;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ooqiu.gaming.R;

import java.util.List;

/**
 * @author Eenie
 * @date 2017/12/6
 */

public class ThinkWordAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public ThinkWordAdapter(@Nullable List<String> data) {
        super(R.layout.item_search_think_word, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setText(R.id.tv_word, String.format("%s.%s", helper.getPosition() + 1, item));
    }
}
